import Layout from '@/layout'

const systemRouter = {
  alwaysShow: true,
  path: '/system',
  component: Layout,
  redirect: '',
  name: 'System',
  meta: {
    title: '系统管理',
    icon: '系统管理'
  },
  children: [
    // 部门管理
    {
      path: 'departmentList',
      component: () => import('@/views/system/organize/departmentList'),
      name: 'DepartmentList',
      meta: { title: '部门管理', noCache: true, icon: '部门管理' }
    },
    // 职位管理
    {
      path: 'positionList',
      component: () => import('@/views/system/organize/positionList'),
      name: 'PositionList',
      meta: { title: '职位管理', noCache: true, icon: '职位管理' }
    },
    // 员工管理
    {
      path: 'employeeList',
      component: () => import('@/views/system/organize/employeeList'),
      name: 'EmployeeList',
      meta: { title: '员工管理', noCache: true, icon: '员工管理' }
    },
    // 员工管理
    {
      path: 'withdrawal',
      component: () => import('@/views/system/withdrawal'),
      name: 'withdrawal',
      meta: { title: '提现管理', noCache: true, icon: '提现管理' }
    }
  ]
}

export default systemRouter
